package edu.nf.relaxenjoy.domain.dto;

import edu.nf.relaxenjoy.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author zhu
 * @date 2024-12-19
 */
@Data
@ApiModel(value = "评论信息")
public class CommentDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ApiModelProperty(value = "评论的图片信息id")
    @NotNull(message = "视频id不能为空", groups = DefaultGroup.class)
    private Long mid;
    /**
     *
     */
    @ApiModelProperty(value = "发布评论的用户id")
    @NotNull(message = "用户id不能为空", groups = DefaultGroup.class)
    private Long uid;

    /**
     *
     */
    @ApiModelProperty(value = "评论的父id")
    private Long pid;

    /**
     *
     */
    @ApiModelProperty(value = "回复某一条评论的id")
    private Long replyId;

    @ApiModelProperty(value = "回复某一条评论的用户id")
    private Long replyUid;

    /**
     *
     */
    @ApiModelProperty(value = "评论等级")
    private Integer level;

    /**
     *
     */
    @ApiModelProperty(value = "评论内容")
    @NotBlank(message = "内容不能为空", groups = DefaultGroup.class)
    private String content;

    @ApiModelProperty(value = "点赞数量")
    private Long count;

    @ApiModelProperty(value = "回复评论数量")
    private Long twoNums;

    @ApiModelProperty(value = "评论的时间")
    private Date createTime;
}
